package com.demo2do.sms.service;

import java.util.List;

import com.demo2do.sms.entity.sms.SmsCompany;
import com.demo2do.sms.entity.sms.SmsRecord;

/**
 * 
 * @author mohanlan
 *
 */
public interface SmsService {
    
    /**
     * Load smsCompany by channel (company alias)
     * 
     * @param client
     * @return
     */
    public SmsCompany loadCompany(String client);
    
    /**
     * 
     * @param id
     * @return
     */
    public SmsRecord loadSms(Long id);
    
    /**
     * 
     * @param ids
     * @return
     */
    public List<SmsRecord> listSms(List<Long> ids);
    
    /**
     * Create single sms record
     * 
     * @param smsRecord
     */
    public void create(SmsRecord smsRecord);
    
    /**
     * Create batch sms records
     * 
     * @param smsRecords
     */
    public void create(List<SmsRecord> smsRecords);
}
